/**
 * Copyright (c) 2000-2012 Liferay, Inc. All rights reserved.
 *
 * This library is free software; you can redistribute it and/or modify it under
 * the terms of the GNU Lesser General Public License as published by the Free
 * Software Foundation; either version 2.1 of the License, or (at your option)
 * any later version.
 *
 * This library is distributed in the hope that it will be useful, but WITHOUT
 * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
 * FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more
 * details.
 */

package postlogin.model;

import java.io.Serializable;

import java.util.ArrayList;
import java.util.List;

/**
 * This class is used by SOAP remote services, specifically {@link postlogin.service.http.UsuarioSlicRolServiceSoap}.
 *
 * @author    tito
 * @see       postlogin.service.http.UsuarioSlicRolServiceSoap
 * @generated
 */
public class UsuarioSlicRolSoap implements Serializable {
	public static UsuarioSlicRolSoap toSoapModel(UsuarioSlicRol model) {
		UsuarioSlicRolSoap soapModel = new UsuarioSlicRolSoap();

		soapModel.setUsuarioSlicRolId(model.getUsuarioSlicRolId());
		soapModel.setUsuario(model.getUsuario());
		soapModel.setRol(model.getRol());

		return soapModel;
	}

	public static UsuarioSlicRolSoap[] toSoapModels(UsuarioSlicRol[] models) {
		UsuarioSlicRolSoap[] soapModels = new UsuarioSlicRolSoap[models.length];

		for (int i = 0; i < models.length; i++) {
			soapModels[i] = toSoapModel(models[i]);
		}

		return soapModels;
	}

	public static UsuarioSlicRolSoap[][] toSoapModels(UsuarioSlicRol[][] models) {
		UsuarioSlicRolSoap[][] soapModels = null;

		if (models.length > 0) {
			soapModels = new UsuarioSlicRolSoap[models.length][models[0].length];
		}
		else {
			soapModels = new UsuarioSlicRolSoap[0][0];
		}

		for (int i = 0; i < models.length; i++) {
			soapModels[i] = toSoapModels(models[i]);
		}

		return soapModels;
	}

	public static UsuarioSlicRolSoap[] toSoapModels(List<UsuarioSlicRol> models) {
		List<UsuarioSlicRolSoap> soapModels = new ArrayList<UsuarioSlicRolSoap>(models.size());

		for (UsuarioSlicRol model : models) {
			soapModels.add(toSoapModel(model));
		}

		return soapModels.toArray(new UsuarioSlicRolSoap[soapModels.size()]);
	}

	public UsuarioSlicRolSoap() {
	}

	public long getPrimaryKey() {
		return _usuarioSlicRolId;
	}

	public void setPrimaryKey(long pk) {
		setUsuarioSlicRolId(pk);
	}

	public long getUsuarioSlicRolId() {
		return _usuarioSlicRolId;
	}

	public void setUsuarioSlicRolId(long usuarioSlicRolId) {
		_usuarioSlicRolId = usuarioSlicRolId;
	}

	public String getUsuario() {
		return _usuario;
	}

	public void setUsuario(String usuario) {
		_usuario = usuario;
	}

	public String getRol() {
		return _rol;
	}

	public void setRol(String rol) {
		_rol = rol;
	}

	private long _usuarioSlicRolId;
	private String _usuario;
	private String _rol;
}